<?php if($flight['airline']==1) $airline="Air Bagan";
	  else if($flight['airline']==2) $airline="Air Mandalay";
	  else if($flight['airline']==3) $airline="Air KBZ";
	  else if($flight['airline']==4) $airline="Golden Myanmar Airlines";
	  else if($flight['airline']==5) $airline="Yangon Airway";
	  else if($flight['airline']==6) $airline="Asian Swings";?>

<h1 style="color:red"><?php echo $airline." (".$flight['fromplace']." => ".$flight['destination'].")" ?></h1>
<input type="button" onclick="location.assign('<?php echo base_url(); ?>admin/flightprice/edit?flightid=<?php echo $_GET['flightid'] ?>');" value="Insert" style="float:right;margin-right:10px;margin-bottom:5px;"/>
<table>
  <tr>
    <th>STT</th>
    <th>Date from ==> to</th>
    <th>P.f Adult</th>
    <th>P.f Children</th>
    <th>Status</th>
    <th>Edit / Del</th>
  </tr>
  <?php foreach($data as $k=>$list){?>
  <tr>
    <th><?php echo $k+1 ?></th>
    <th><?php echo $list['datefrom']." ==> ".$list['dateto'] ?></th>
    <th><?php echo $list['priceforadult'] ?></th>
    <th><?php echo $list['priceforchild'] ?></th>
    <th><select name="changestatus" onChange="location.assign('<?php echo base_url(); ?>/admin/flightprice/changestatus?flightid=<?php echo $list["flightid"] ?>&id=<?php echo $list["id"] ?>&status='+this.options[this.selectedIndex].value);">
        <option value="1">Highlights</option>
        <option value="2">Normal</option>
        <option value="3">Hidden</option>
      </select></th>
    <th><a href="<?php echo base_url(); ?>admin/flightprice/edit?flightid=<?php echo $list["flightid"] ?>&id=<?php echo $list['id'] ?>"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_edit.png"/></a> <a href="javascript:void(0);" onClick="if(confirm('Do you want to Del this Information ?')) location.assign('<?php echo base_url(); ?>admin/flightprice/delete?flightid=<?php echo $list["flightid"] ?>&id=<?php echo $list["id"]; ?>');"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_delete.png"/></a></th>
  </tr>
  <?php }?>
</table>
